package com.haynes.meetxiaohai.common;

import com.haynes.meetxiaohai.dto.DishDto;

/**
 * @Author Haynes
 * @Date 2023/4/4 8:26
 * @PackageName:com.haynes.meetxiaohai.common
 * @ClassName: ClearCache
 */
public class PublicKey {


    /**
     * 设置公用的菜品的Key
     * @param dishDto 菜品
     * @return
     */
    public static String DishKey(DishDto dishDto){
        return "dish_"+dishDto.getCategoryId()+"_"+dishDto.getStatus();
    }
}
